//
//	MCdietCategoryModel.swift
//	Model file generated using JSONExport: https://github.com/Ahmed-Ali/JSONExport

import Foundation 
import ObjectMapper


class MCdietCategoryModel : NSObject, NSCoding, Mappable{

	var labelCode : String?
	var labelName : String?


	class func newInstance(map: Map) -> Mappable?{
		return MCdietCategoryModel()
	}
	required init?(map: Map){}
	private override init(){}

	func mapping(map: Map)
	{
		labelCode <- map["labelCode"]
		labelName <- map["labelName"]
		
	}

    /**
    * NSCoding required initializer.
    * Fills the data from the passed decoder
    */
    @objc required init(coder aDecoder: NSCoder)
	{
         labelCode = aDecoder.decodeObject(forKey: "labelCode") as? String
         labelName = aDecoder.decodeObject(forKey: "labelName") as? String

	}

    /**
    * NSCoding required method.
    * Encodes mode properties into the decoder
    */
    @objc func encode(with aCoder: NSCoder)
	{
		if labelCode != nil{
			aCoder.encode(labelCode, forKey: "labelCode")
		}
		if labelName != nil{
			aCoder.encode(labelName, forKey: "labelName")
		}

	}

}